pdate demo program
authorJoey Hess <joeyh@joeyh.name>
Tue, 25 Feb 2025 21:23:38 +0000 (17:23 -0400)
committerJoey Hess <joeyh@joeyh.name>
Tue, 25 Feb 2025 21:23:38 +0000 (17:23 -0400)
needed a mkdir

doc/design/compute_special_remote_interface.mdwn

index 34b7da7e77b8f345abf0cfd9de187f93f95c2d2b..f8fa92ed468ebd1ba875592d54214d77e3684538 100644 (file)
@@ -92,16 +92,17 @@ An example `git-annex-compute-foo` shell script follows:
     #!/bin/sh
     set -e
     if [ "$1" != "convert" ]; then
-        echo "Usage: convert input output [passes=n]" >&2
-        exit 1
+       echo "Usage: convert input output [passes=n]" >&2
+       exit 1
     fi
     if [ -z "$ANNEX_COMPUTE_passes" ]; then
-        ANNEX_COMPUTE_passes=1
+       ANNEX_COMPUTE_passes=1
     fi
     echo "INPUT $2"
     read input
     echo "OUTPUT $3"
     echo REPRODUCIBLE
     if [ -n "$input" ]; then
-       frobnicate --passes="$ANNEX_COMPUTE_passes" <"$input" >"$3"
+        mkdir -p "$(dirname "$3")"
+        frobnicate --passes="$ANNEX_COMPUTE_passes" <"$input" >"$3"
     fi